<script setup lang="ts">
import { useAppStore } from '@/store';

const store = useAppStore();

onLaunch(async () => {
  store.updateTabbarHeight();
  if (store.$state.token) {
    store.connectSocketMessage();
  }
});
onShow(() => {
  console.log('App Show');
});
onHide(() => {
  console.log('App Hide');
});
</script>

<style lang="scss">
@import 'wxcomponents/vant/common/index.wxss';
@import '@/static/styles/common.scss';
</style>
